/*求100之内的素数(1是不是素数?) */
public class Exerise_27 {
    public static void main(String[] args) {
        for (int i = 2; i <= 100; i++) {
            int flag=1;
            for (int j = 2; j <= (int)(Math.sqrt(i)); j++) {
                if (i % j == 0) {
                    flag=0;
                    break;
                }
            }
            if(flag==1)
                System.out.println(i+"是素数");
        }
    }
}
